<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>日志管理</title>
  <link rel="stylesheet" href="layui/css/layui.css" media="all" />
  <script src="layui/css/layui.css" type="text/javascript"></script>
</head>
<body>
<script src="layui/layui.js"></script>
<script>
  layui.use('table', function () {
    var table = layui.table;
    var form = layui.form;
    var $ = layui.jquery;
    var layer = layui.layer;

    //温馨提示：默认由前端自动合计当前行数据。从 layui 2.5.6 开始： 若接口直接返回了合计行数据，则优先读取接口合计行数据。
    //详见：/docs/modules/table.html#totalRow
    table.render({
      height: 'full-55'
      , minLength: 60,
      elem: '#myTable'
      , url: 'jour'
      , toolbar: '#toolbarDemo'
      , title: '日志管理'
      , cols: [[
        {type: 'checkbox', field: 'left'}
        , {field: 'roleId', title: '角色Id'}
        , {field: 'rightCode', title: '功能编号'}
        , {field: 'diaryId', title: '日志编号'}
        , {field: 'movement', title: '动作'}
        , {field: 'state', title: '状态'}
        , {field: 'userName', title: '用户'}
        , {field: 'times', title: '访问时间'}
        , {field: 'source', title: '来源'}

      ]]
      , page: true
    })
  });
</script>
<table id="myTable" lay-filter="myTable" ></table>
</body>
</html>